<?php defined('SYSPATH') or die('No direct script access.');

/*
*
*
*
*/

class Controller_Reservation extends Controller_Admin
{

    /**
     *手动新建采购单

     */
    public function before()
    {
        try{
            ACL::Required('create update purchase');
        }catch(HTTP_Exception_403 $e){
            Message::error('sorry，你没有权限进这个目录');
            $this->request->redirect(URL::base(TRUE));
        }

        parent::before();
    }

    /**
     * 描述:创建预约单界面
     * 作者:kelvin
     */
    public function action_addView()
    {
        $this->title = __('新建预约单');
        $purchaseorder_id = Service_purchaseadd::get_purchaseorder_num();
        $view = View::factory('purchase/addView');
        $view->set('purchaseorder_id',$purchaseorder_id);
        $this->response->body($view);
    }


}
